package main

import (
	"fmt"
)

func tryRecover(){
	defer func() {
		r := recover()
		if err,ok := r.(error);ok{
			fmt.Println(err)
		}else {
			panic(err)
		}
	}()
	b:=0
	f := 5/b
	fmt.Println(f)
}

func main(){
	tryRecover()
}